-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional dmi testing for duplicates and quantity #3867
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
Github
We don't really know what else this belongs to
Code Improvement
Make the code longer
labels
Jul 11, 2023
Drulikar
changed the title
Experimental: Additional dmitool testing
Experimental: Additional dmi testing
Jul 12, 2023
Drulikar
changed the title
Experimental: Additional dmi testing
Additional dmi testing for duplicates and quantity
Jul 18, 2023
Linter should pass now once github is sorted out. |
cm13-github
added
the
Merge Conflict
PR can't be merged because it touched too much code
label
Jul 19, 2023
cm13-github
removed
the
Merge Conflict
PR can't be merged because it touched too much code
label
Jul 19, 2023
harryob
approved these changes
Jul 24, 2023
cm13-github
added a commit
that referenced
this pull request
Jul 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Code Improvement
Make the code longer
Github
We don't really know what else this belongs to
Sprites
Remove the soul from the game.
Unit Tests
Keep the game broken, forcefully.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the pull request
This PR adds additional lints for dmi files: duplicate state names and a check if the count of states exceeds 512. (My first attempt at this was to modify the missing_icons unit test, but the icon_states proc ignores duplicate states.)
Let me know if you would like the items_left/righthand files balanced more or if theres anything I may have missed. We don't currently have unit testing for on_mob icons due to how many just simply don't have icons.
Explain why it's good for the game
Helps prevent accidental errors in DMI files that might otherwise get overlooked, and finishes the work that was started in #3895 .
Testing Photographs and Procedure
Screenshots & Videos
Changelog
🆑 Drathek
code: Added additional lints to dmi/test.py to test for duplicate state names and excessive quantity and added another type path to the missing_icons unit_test.
imageadd: Renamed and moved some icons around to comply with new testing.
/:cl: